const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    // @property(cc.Label)
    // label: cc.Label = null;

    label = new cc.Label();

    /**初始化设置函数 */
    setData({ showString, num }) {
        this.label.string = showString;
        console.warn("num", showString, num);
    }

    onLoad() {

    }

}